home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Whiteline: delta
/
whiteline CD Series - delta.iso
/
progtool
/
c
/
sozobon
/
sozlib15.zoo
/
sozdistr
/
examples
/
world2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-15
|
508b
|
23 lines
/* The inevitable hello world program...
*
* I found this one while reading news and modified it slightly
* in order to avoid the CR/LF problem.
*
* The only difference to 'world.c': output should be faster
*
*/
#include <stdio.h>
float o=0.075,h=1.5,T,r,O,l,I;
int x,L=80,s=3200;
void main()
{
setvbuf(stdout, NULL, _IOLBF, 0);
for( ;s%L||(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++x==L &&\
printf("%.1s",(--s%L?(x<L ? --x%6:6):7)+"World! \n")&&\
(O=I=l=x=r=0,T+=o/2) )
O=I*2*O+h,I=l+T-r;
}